// 入口文件main
import { createApp } from 'vue'

import pinia from './stores'
import App from './App.vue'
import router from './router'

// import './assets/main.css'

// 导入全局样式
import '@/styles/index.scss'
// vant需要单独引入的样式
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/image-preview/style'
// 注册图标
import 'virtual:svg-icons-register'

// 1.创建根实例
const app = createApp(App)

// 2.注册pinia和router
app.use(pinia)
app.use(router)

console.log('读取环境变量', import.meta.env)

// 3.挂在渲染app根组件
app.mount('#app')
